---
tags:
 - monthly
 - y<% tp.date.now("YYYY") %>
type: monthly
aliases: 
link: "[[<% tp.date.now("YYYY") %>]]"
created: {{date:YYYY-MM-DD}} {{time:HH:mm:ss}}
note-date: <% tp.date.now("YYYY-MM-DD") %>
---

Шаблон: [tp_monthly](tp_monthly.md)

Месяц:: `= dateformat(date(this.file.cday), "'[['yyyy'-'MM']]'")`

<%*
  let title = tp.file.title 
  if (title.startsWith("Untitled")) {
    title = await tp.system.prompt("Title");
    await tp.file.rename(`${title}`);
  }
%>
# <%* tR += `${title}` %>

<< [[<%fileDate = moment((`${title}`), 'YYYY-MM').subtract(1, 'months').format('YYYY-MM')%>|Предыдущий месяц]] | [[<%fileDate = moment((`${title}`), 'YYYY-MM').add(1, 'months').format('YYYY-MM')%>|Следующий месяц]] >>

> [!NOTE] Недели этого месяца
> ```dataview
> LIST
> FROM "JOURNAL/2_weekly"
> WHERE note-date.month = this.note-date.month
> SORT file.name ASC
> ```

> [!NOTE] Незаконченные дела на этот месяц
> ```dataview
> TASK
> FROM "JOURNAL/1_daily"
> WHERE dateformat(file.ctime, "WW") = dateformat(this.file.ctime, "WW") AND !completed
> SORT file.ctime ASC
> GROUP BY file.ctime
> ```

> [!Кофе]
> ```dataview
> list
> from "JOURNAL/1_daily"
> WHERE Кофе
> ```

> [!Плохое самочувствие]
> ```dataview
> list
> from "JOURNAL/1_daily"
> WHERE headAche
> ```
